projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf118ec
)
widget: Don't set the allocation in size-allocate
author
Timm Bäder
<mail@baedert.org>
Fri, 5 May 2017 10:46:19 +0000
(12:46 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000
(21:27 -0400)
If widgets chain up in their size-allocate implementation, they pass the
content allocation and not the widget allocation which will cause the
wrong allocation to be set.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index cb1048e2220ea9f47188f2779ed38943e216c843..64cbcf17a60b7ab085faaf14cfded805841c5dd0 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-5860,8
+5860,6
@@
gtk_widget_real_size_allocate (GtkWidget *widget,
{
GtkWidgetPrivate *priv = widget->priv;
- gtk_widget_set_allocation (widget, allocation);
-
if (_gtk_widget_get_realized (widget) &&
_gtk_widget_get_has_window (widget))
{